<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">添加商品</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Qrcode/addGoodsSub')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                <input type="hidden" name="supplier_id" value="{$supplier_id}">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>商品添加</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            <tr>
                                 <th width="15%"><i class="require-red">*</i>商品名称：</th>           
                               <td>
                                    <input type="text"  datatype="*" nullmsg="请添加商品名称" errormsg="请添加商品名称"    name="goods_name" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>商品货号</th>
                               <td>
                                    <input type="text"     name="goods_sn" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                <th width="15%"><i class="require-red">*</i>商品所属分类：</th>                            
                                <td>  
							        <select name="term_id">  
							            <!-- <option value="0">顶级分类</option>   -->
							            <volist name="row" id="val">  
							                <option value="{$val.term_id}"  size="85"  class="common-text">{$val['html']}{$val.name}</option>  
							            </volist>  
							        </select>  
							    </td> 

                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>商品价格：</th>
                                
                               <td>
                                    <input type="text" datatype="*" nullmsg="请添加商品价格" name="shop_price" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>市场价：</th>
                                
                               <td>
                                    <input type="text"  datatype="*" nullmsg="请添加商品商场价" name="market_price" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>数量：</th>
                               <td>
                                    <input type="text" datatype='n' value='0' errormsg="请添加有效的数量"   name="goods_number" class="common-text"> 
                               </td>
                                 
                            </tr>
                                <tr>
                                    <th></th>
                                    <td>
                                      
                                        <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                    </td>
                                </tr>
                            </tbody></table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>

<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>